const App = getApp();
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  ["pages/user/useredit"], {
    "196a": function (t, e, o) {
      "use strict";
      var n = o("eed1"),
        i = o.n(n);
      i.a
    },
    "22e0": function (t, e, o) {
      "use strict";
      o.r(e);
      var n = o("4e80"),
        i = o.n(n);
      for (var a in n) "default" !== a && function (t) {
        o.d(e, t, (function () {
          return n[t]
        }))
      }(a);
      e["default"] = i.a
    },
    "2b9d": function (t, e, o) {},
    "41e3": function (t, e, o) {
      "use strict";
      (function (t) {
        o("114d");
        n(o("66fd"));
        var e = n(o("6a9f"));

        function n(t) {
          return t && t.__esModule ? t : {
            default: t
          }
        }
        t(e.default)
      }).call(this, o("543d")["createPage"])
    },
    "4ddf": function (t, e, o) {
      "use strict";
      o.r(e);
      var n = o("d74a"),
        i = o("d4e2");
      for (var a in i) "default" !== a && function (t) {
        o.d(e, t, (function () {
          return i[t]
        }))
      }(a);
      o("196a");
      var u, s = o("f0c5"),
        r = Object(s["a"])(i["default"], n["b"], n["c"], !1, null, "c9db5f1e", null, !1, n["a"], u);
      e["default"] = r.exports
    },
    "4e80": function (t, e, o) {
      "use strict";
      (function (t) {
        Object.defineProperty(e, "__esModule", {
          value: !0
        }), e.default = void 0;
        var n, i;
        a(o("4ddf"));

        function a(t) {
          return t && t.__esModule ? t : {
            default: t
          }
        }

        function u(t, e, o) {
          return e in t ? Object.defineProperty(t, e, {
            value: o,
            enumerable: !0,
            configurable: !0,
            writable: !0
          }) : t[e] = o, t
        }
        var s = function () {
            Promise.all([o.e("common/vendor"), o.e("components/uni-popup/uni-popup")]).then(function () {
              return resolve(o("27cb"))
            }.bind(null, o)).catch(o.oe)
          },
          r = function () {
            o.e("components/uni-popup/uni-popup-message").then(function () {
              return resolve(o("260a"))
            }.bind(null, o)).catch(o.oe)
          },
          c = function () {
            o.e("components/popup-layer/popup-layer").then(function () {
              return resolve(o("3ab9"))
            }.bind(null, o)).catch(o.oe)
          },
          l = function () {
            Promise.all([o.e("common/vendor"), o.e("uni_modules/uni-calendar/components/uni-calendar/uni-calendar")]).then(function () {
              return resolve(o("dffb"))
            }.bind(null, o)).catch(o.oe)
          },
          p = {
            data: function () {
              return {
                date: "2019-03-10",
                status: "",
                familyMember: ["亲属1", "亲属2", "亲属3", "亲属4", "亲属5"],
                cFM: "",
                bedNum: [1, 2, 3, 4, 5],
                cBed: "",
                cTime: "",
                pCondition: ["健康", "亚健康", "不健康", "不清楚"],
                cPC: "",
                number: ["001", "002", "003", "004", "005", "006", "007"],
                cN: "",
                boolShow: !1,
                showMsk: !1,
                index: -1,
                switchC: !0,
                imgList: [],
                uploadUrl: "/sys/common/upload",
                myFormData: {
                  realname: "",
                  identityNum: "",
                  sex: 1,
                  family: "",
                  bed: "",
                  cTime: "",
                  pCondition: "",
                  cNum: ""
                }
              }
            },
            components: (n = {
              popupLayer: c,
              uniPopup: s,
              uniPopupMessage: r
            }, u(n, "popupLayer", c), u(n, "calendar", l), n),
            onLoad: function (t) {
              var e = this;
              console.log("this.$Route.query", this.$Route.query);
              var o = this.$Route.query;
              o && (this.myFormData = o, "女" == this.myFormData.sex ? this.switchC = !1 : "男" == this.myFormData.sex && (this.switchC = !0), this.myFormData.avatar && (this.imgList = [this.myFormData.avatar]), this.Avatar = this.myFormData.avatar, Object.keys(this.myFormData).map((function (t) {
                "无" == e.myFormData[t] && (e.myFormData[t] = "")
              })), console.log("this.myFormData", this.myFormData))
            },
            methods: (i = {
              moveHandle: function () {},
              change: function (t) {
                console.log(t)
              },
              toClick: function (t) {
                console.log(t)
              },
              show: function () {},
              close: function () {},
              openPopuos1: function () {
                this.$refs.popups1.open()
              },
              choosePerson: function (t) {
                this.cFM = t, this.myFormData.family = t, this.$refs.popups1.close()
              },
              openPopuos2: function () {
                this.$refs.popups2.open()
              },
              chooseBed: function (t) {
                this.cBed = t, this.myFormData.bed = t, this.$refs.popups2.close()
              },
              openPopuos3: function () {
                this.$refs.popups3.open()
              },
              openPopuos4: function () {
                this.$refs.popups4.open()
              },
              choosePC: function (t) {
                this.cPC = t, this.myFormData.pCondition = t, this.$refs.popups4.close()
              },
              openPopuos5: function () {
                this.$refs.popups5.open()
              },
              chooseNum: function (t) {
                this.cN = t, this.myFormData.cNum = t, this.$refs.popups5.close()
              },
              hands: function () {
                this.$refs.popup.close()
              }
            }, u(i, "change", (function (t) {
              console.log(t.fulldate), this.cTime = t.fulldate, this.$refs.popups3.close()
            })), u(i, "onSubmit", (function () {
              var t = this,
                e = this.myFormData,
                o = new RegExp(/^\d{15}|\d{18}$/);
              return console.log("myForm", e), App.globalData.oldman=e,console.log(App.globalData.oldman),e.identityNum && 0 != e.identityNum.length ? o.test(e.identityNum) ? (this.myFormData.id = this.$store.getters.userid, this.switchC ? this.myFormData.sex = 1 : this.myFormData.sex = 2, console.log("myform", this.myFormData.realname), console.log("myform", this.myFormData.family), console.log("myform", this.myFormData.bed), console.log("myform", this.myFormData.pCondition), console.log("myform", this.myFormData.cNum), this.$tip.loading(), void this.$http.put("/sys/user/appEdit", this.myFormData).then((function (e) {
                console.log(e), t.$tip.loaded(), e.data.success && (t.$tip.toast("提交成功"), t.$Router.replace({
                  name: "userdetail"
                }))
              })).catch((function () {
                t.$tip.loaded(), t.$tip.error("提交失败")
              }))) : (this.$tip.alert("请输入正确的身份证号码"), !1) : (this.$tip.alert("请输入身份证号码"), !1)
            })), u(i, "DateChange", (function (t) {
              this.myFormData.birthday = t.detail.value
            })), u(i, "SwitchC", (function (t) {
              this.switchC = t.detail.value
            })), u(i, "ChooseImage", (function () {
              var e = this,
                o = this;
              t.chooseImage({
                count: 4,
                sizeType: ["original", "compressed"],
                sourceType: ["album"],
                success: function (t) {
                  o.$http.upload(o.$config.apiUrl + o.uploadUrl, {
                    filePath: t.tempFilePaths[0],
                    name: "file"
                  }).then((function (t) {
                    o.myFormData.avatar = t.data.message
                  })).catch((function (t) {
                    o.$tip.error(t.data.message)
                  })), e.imgList = t.tempFilePaths
                }
              })
            })), u(i, "ViewImage", (function (e) {
              t.previewImage({
                urls: this.imgList,
                current: e.currentTarget.dataset.url
              })
            })), i)
          };
        e.default = p
      }).call(this, o("543d")["default"])
    },
    "6a9f": function (t, e, o) {
      "use strict";
      o.r(e);
      var n = o("bf8b"),
        i = o("22e0");
      for (var a in i) "default" !== a && function (t) {
        o.d(e, t, (function () {
          return i[t]
        }))
      }(a);
      o("739a");
      var u, s = o("f0c5"),
        r = Object(s["a"])(i["default"], n["b"], n["c"], !1, null, null, null, !1, n["a"], u);
      e["default"] = r.exports
    },
    "739a": function (t, e, o) {
      "use strict";
      var n = o("2b9d"),
        i = o.n(n);
      i.a
    },
    bf8b: function (t, e, o) {
      "use strict";
      o.d(e, "b", (function () {
        return i
      })), o.d(e, "c", (function () {
        return a
      })), o.d(e, "a", (function () {
        return n
      }));
      var n = {
          popupLayer: function () {
            return o.e("components/popup-layer/popup-layer").then(o.bind(null, "3ab9"))
          },
          uniPopup: function () {
            return Promise.all([o.e("common/vendor"), o.e("components/uni-popup/uni-popup")]).then(o.bind(null, "27cb"))
          },
          uniCalendar: function () {
            return Promise.all([o.e("common/vendor"), o.e("uni_modules/uni-calendar/components/uni-calendar/uni-calendar")]).then(o.bind(null, "dffb"))
          }
        },
        i = function () {
          var t = this,
            e = t.$createElement;
          t._self._c
        },
        a = []
    },
    d4e2: function (t, e, o) {
      "use strict";
      o.r(e);
      var n = o("e494"),
        i = o.n(n);
      for (var a in n) "default" !== a && function (t) {
        o.d(e, t, (function () {
          return n[t]
        }))
      }(a);
      e["default"] = i.a
    },
    d74a: function (t, e, o) {
      "use strict";
      var n;
      o.d(e, "b", (function () {
        return i
      })), o.d(e, "c", (function () {
        return a
      })), o.d(e, "a", (function () {
        return n
      }));
      var i = function () {
          var t = this,
            e = t.$createElement;
          t._self._c
        },
        a = []
    },
    e494: function (t, e, o) {
      "use strict";
      Object.defineProperty(e, "__esModule", {
        value: !0
      }), e.default = void 0;
      var n = {
        name: "uniPopupDialog",
        props: {
          value: {
            type: [String, Number],
            default: ""
          },
          placeholder: {
            type: [String, Number],
            default: "请输入内容"
          },
          type: {
            type: String,
            default: "error"
          },
          mode: {
            type: String,
            default: "base"
          },
          title: {
            type: String,
            default: "提示"
          },
          content: {
            type: String,
            default: ""
          },
          beforeClose: {
            type: Boolean,
            default: !1
          }
        },
        data: function () {
          return {
            dialogType: "error",
            focus: !1,
            val: ""
          }
        },
        inject: ["popup"],
        watch: {
          type: function (t) {
            this.dialogType = t
          },
          mode: function (t) {
            "input" === t && (this.dialogType = "info")
          },
          value: function (t) {
            this.val = t
          }
        },
        created: function () {
          this.popup.mkclick = !1, "input" === this.mode ? (this.dialogType = "info", this.val = this.value) : this.dialogType = this.type
        },
        mounted: function () {
          this.focus = !0
        },
        methods: {
          onOk: function () {
            var t = this;
            this.$emit("confirm", (function () {
              t.popup.close(), "input" === t.mode && (t.val = t.value)
            }), "input" === this.mode ? this.val : "")
          },
          close: function () {
            var t = this;
            this.beforeClose ? this.$emit("close", (function () {
              t.popup.close()
            })) : this.popup.close()
          }
        }
      };
      e.default = n
    },
    eed1: function (t, e, o) {}
  },
  [
    ["41e3", "common/runtime", "common/vendor"]
  ]
]);